home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0044.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  2.2 KB  |  53 lines

  1. In a message dated Mon  5 Dec 94 12:00, marty@cs.hope.edu (Ben Marty)
  2. wrote:
  3.  
  4. > For example, I want to change the strength of a lightsource over time
  5. > fractally between a minimum and a maximum point.  Also, I need to be able
  6. > to create an array (x,y) of numbers that will act as terrain.  I think
  7. > someone mentioned this is called "gridding"?  Anyway, if anyone can
  8. provide
  9. > solutions or point me in the right direction (apart from telling me to
  10. read
  11. > a book on fractals) I'd appreciate it!
  12.  
  13.  BM>  You've tried to be specific, but I still don't understand.  Perhaps
  14.  BM> if
  15.  BM> you mention what kind of a program you're trying to write.  Is it
  16.  BM> some kind
  17.  BM> of landscape rendering program?  And tell us how, exactly, this
  18.  BM> particular
  19.  BM> method is necessary.
  20.  
  21. OK, let me try again.  I want to use some kind of fractal routine to
  22. generate two sets of code:
  23.  
  24. The first will fractally change a number between 0 and 255 (or between a
  25. minimum and maximum value).  The fractal value must change smoothly over
  26. time.  This code is for an addition to Imagine, a 3D rendering program.  I
  27. have programmed a waveform envelope generator/editor to control the
  28. strength of a lightsource (hece the 0 - 255 value range).  I want to be
  29. able to let the user press a button and every value following the first one
  30. (that's the one the user initially sets) has some kind of fractal algorythm
  31. applied to it.
  32.  
  33. The landscape generator is for a later project.  I basically need to create
  34. a grid of values where, lets say, 0 represents flat terrain, 1 represents
  35. low hills, 2 = medium hills, 3=high hills, -1 represents marshes, etc. 
  36. What I need here is to fill an array of x by y with a value of 0, then
  37. apply some kind of fractal operator on the array to build the hills,
  38. valleys, lakes, etc.
  39.  
  40. Hope I've been a little less vague...I'm working on very little sleep these
  41. last few days :^(
  42.  
  43. Paul
  44.  
  45. -- Via DLG Pro v1.0
  46.  
  47. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  48. | Paul             Fine Lines Publications                |
  49. * Thompson      CGI   Animations   Multimedia             *
  50. |                Shinobi@ckbbs.tor.hookup.net             |
  51. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  52.  
  53.